home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
C/C++ Users Group Library 1996 July
/
C-C++ Users Group Library July 1996.iso
/
listings
/
v_10_09
/
1009073a
< prev
next >
Wrap
Text File
|
1992-05-10
|
261b
|
12 lines
short train_weights(target, net, eta, w, x, N)
short target, net, w[], x[], N;
float eta;
{
short delta_w, i;
for(i=0; i<N+1; i++){
delta_w = eta*x[i]*(target-net);
w[i] = w[i] + delta_w;
}
} /* ends train_weights */